import request from '@/utils/request'

export function categoryList() {

  //request对象发送axios请求
  return request({
    url: '/category/categoryList',
    method: 'get',
  })
}

export function searchProduction(data) {

  //request对象发送axios请求
  return request({
    url: '/production/searchProduction',
    method: 'get',
    params: data
  })
}

export function deleteMoreByIds(data) {

  //request对象发送axios请求
  return request({
    url: '/production/delBatch',
    method: 'post',
    params: data
  })
}

export function searchOneProduction(data) {

  //request对象发送axios请求
  return request({
    url: '/production/searchById',
    method: 'post',
    params: data
  })
}

export function addOneProductionInfo(data) {

  //request对象发送axios请求
  return request({
    url: '/production/addProduction',
    method: 'post',
    data: data
  })
}

export function editOneProductionInfo(data) {

  //request对象发送axios请求
  return request({
    url: '/production/editProduction',
    method: 'post',
    data: data
  })
}
